Locating a Movie's Tracks and Media Structures
The Movie Toolbox provides a set of functions that help your application locate a movie's tracks and media structures. This section describes these functions.The Movie Toolbox identifies a movie's tracks in two ways. First, every track in a movie has a unique ID value. This ID value is unique throughout the life of a movie, even after it has been saved. That is, no two tracks of a movie ever have the same ID, and no ID value is ever reused. Second, a movie's current tracks may be identified by their index value. Index values always range from 1 to the number of tracks in the movie. Track indexes provide a convenient way to access each track of a movie.
There are several functions that allow you to find a movie's tracks. You can use the
GetMovieTrackCount
function to determine the number of tracks in a movie. Use theGetMovieTrack
function to obtain the track identifier for a specific track, given its ID. TheGetMovieIndTrack
function lets you obtain a track's identifier, given its track index.You can obtain a track's ID value given its track identifier by calling the
GetTrackID
function.You can determine the movie that contains a track by calling the
GetTrackMovie
function.The
GetTrackMedia
function enables you to find a track's media. Conversely, you can find the track that uses a media by calling theGetMediaTrack
function.
Subtopics
- GetMovieTrackCount
- GetMovieIndTrack
- GetMovieTrack
- GetTrackID
- GetTrackMovie
- GetTrackMedia
- GetMediaTrack